package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目提成对象 project_bonus
 * 
 * @author sauger
 * @date 2022-04-21
 */
@Data
public class ProjectBonus extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 项目 */
    @Excel(name = "项目")
    private String projectName;

    private Integer projectId;

    @Excel(name = "项目类型", dictType = "project_type")
    private String projectType;
    /** 收款明细 */

    private Integer receivableId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    private Integer userId;

    /** 收款金额 */
    @Excel(name = "收款金额")
    private BigDecimal receiveAmount;

    /** 提成比例 */
    @Excel(name = "提成比例")
    private Double bonusRate;

    /** 提成金额 */
    @Excel(name = "提成金额")
    private BigDecimal bonusAmount;

    private ReceivableAccount receivable;

    private Project project;


    /** 收款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiveDate;
    @Excel(name = "奖金归属日期")
    private Date bonusDate;
    @Excel(name = "备注")
    private String extra;

    private String generateType;


}
